package com.cy.pj.common.service;

import com.cy.pj.common.cache.Cache;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class CasheService {

    private Cache cache;
    @Autowired
    public CasheService(@Qualifier("softCache") Cache cache) {

        this.cache = cache;
    }

    @Override
    public String toString() {
        return "CasheService{" +
                "cache=" + cache +
                '}';
    }
}
